package com.xingxuecn.limit.dao;

import com.xingxuecn.limit.common.model.Role;
import com.xingxuecn.limit.common.model.RoleUser;

import java.sql.SQLException;
import java.util.List;

/**
 * @author zgx at 2018/9/17 0017 上午 10:38
 */
public interface RoleUserDao {

    int add(RoleUser roleUser) throws SQLException;
    int delete(RoleUser roleUser) throws SQLException;
    List<Role> loadRoleByUser (Integer userId) throws SQLException;
}
